# coding: utf-8
""" ndarray的矢量化运算"""
import numpy as np
from helpers import print_20_

x = np.arange(3)
print("ndarray的矢量化运算")
print("打印x ->", x)
print("乘法运算, 打印x*2 ->", x*2)
print("比较运算, 打印x>2 ->", x>2)
y = np.arange(2, 7, 2)
print("打印y ->", y)
print("加法运算, 打印x+y", x+y)
print("比较数组, 打印x>y", x>y)
print_20_()